{% extends '::layout.html.twig' %}

{% block title %}Projet{% endblock%}

{% block titreNav %}Projet{% endblock %}

{% block titreContent %}Affectations{% endblock %}

{% block titreBreadcrumbs %}
<li><a href="#">Projet</a></li>
<li class="current"><a href="#">Affecter user stories</a></li>
{% endblock %}

{% block contentnav %}

<ul class="subNav">
    <li><a href="{{ path('project_scrum_creategroup') }}" title=""><span class="icos-users2"></span>Créer une équipe</a></li>
    <li><a href="{{ path('project_scrum_createsprint') }}" title=""><span class="icos-running"></span>Créer Sprint</a></li>
    <li><a href="{{ path('project_scrum_affect') }}" title="" class="this"><span class="icos-link"></span>Affecter user stories</a></li>
</ul>

<div class="divider"><span></span></div>

<div class="sideWidget">
    <form method="post" {{ form_enctype(form) }}>
        {% for child in form.refUserstorie %}
            test
        {% endfor %}
        <div class="formRow">{{ form_row(form.refUserstorie) }}</div>
        <div class="formRow">{{ form_row(form.refUtilisateur) }}</div>
        <div class="formRow noBorderB">
            <input type="submit" class="buttonS bLightBlue" value="Affecter">
        </div>
    </form>
</div>

{% endblock %}

{% block content %}
<div class="widget grid12">
    <table class="dTable dataTable">
        <thead>
            <tr>
                <th>User Story</th>
                <th>Personne</th>
            </tr>
        </thead>
        <tbody>
        {% for affectation in affectationsdb %}
                <tr>
                    <td class="center">{{ affectation.refUserstorie.role }}</td>
                    <td class="center">{{ affectation.refUtilisateur.email }}</td>
                    </tr>
         {% endfor %}
                </tbody>
            </table>
        </div>
{% endblock %}
